
<a role="button" ng-click="addRule()" data-toggle="modal" data-target="#myModal" class="btn btn-primary r" >新建</a>

<div class="fix">
    <div ng-repeat="model in models">
        <label>分组名:</label> <input class="dib form-control miniW"  ng-model="model.groupName">
        <label>条件:</label> 当积分
        <select class="form-control dib miniW" ng-model="model.leftOperator">
        <option value=">">大于</option><option value=">=">大于等于</option>
        </select>
        <input class="form-control dib miniW" type="number" ng-model="model.leftNum">
        且
        <select class="form-control dib miniW" ng-model="model.rightOperator">
            <option value="<">小于</option><option value="<=">小于等于</option>
        </select>
        <input class="form-control dib miniW" type="number" ng-model="model.rightNum">

        <a class="btn btn-primary btn-xs" ng-click="save(model)">保存</a>
        <a class="btn btn-danger btn-xs"   role="button" data-toggle="modal" data-target="#deleteModal"ng-click="showRemove(model)" role="button"  style="margin-left: 8px;">删除</a>

    </div>
</div>


<div class="modal fade" id="deleteModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button"
                        class="close"
                        data-dismiss="modal"
                        aria-hidden="true">x</button>
                <h3 id="userMgrLabel">删除</h3>
            </div>
            <div class="modal-body">
                <h4>是否删除{{deleteName}}</h4>
            </div>
            <div class="modal-footer">
                <button class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
                <button class="btn btn-primary"
                        data-dismiss="modal"
                        aria-hidden="true"
                        ng-click="remove(deleteObject)"
                >确定</button>
            </div>
        </div>
    </div>
</div>
